import $http from "@/utils/httpRequest";
export default {
  // 登录验证码获取
  captchaImage(data) {
    return $http({
      url: $http.adornUrl("/system/captchaImage"),
      method: "get",
      noAuthorization: true,
      params: $http.adornParams({
        ...data,
      }),
    });
  },
  // 登录
  login(data) {
    return $http({
      url: $http.adornUrl("/system/login"),
      method: "post",
      contentType: "json",
      noAuthorization: true,
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },
  // 修改密码
  userSettingPwd(data) {
    return $http({
      url: $http.adornUrl("/system/user/settingPwd"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 登录用户信息-获取
  getInfo(data) {
    return $http({
      url: $http.adornUrl("/system/getInfo"),
      method: "get",
      // contentType:'json',
      // data: $http.adornData({
      //   ...data
      // },false,'json')
    });
  },

  // 导航菜单（路由）
  getRouters(data) {
    return $http({
      url: $http.adornUrl("/system/getRouters"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // IC卡管理
  // ic卡列表
  icList(data) {
    return $http({
      url: $http.adornUrl("/web/ic/list"),
      method: "get",
      contentType: "json",
      data: $http.adornData({
        ...data,
      }),
    });
  },
  // ic卡删除
  icDelById(data) {
    return $http({
      url: $http.adornUrl(`/web/ic/delById/${data}`),
      method: "get",
      contentType: "json",
      // data: $http.adornData(
      //   {
      //     ...data,
      //   },
      //   false,
      //   "json"
      // ),
    });
  },
  // ic卡修改
  icEdit(data) {
    return $http({
      url: $http.adornUrl("/web/ic/edit"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },
  // ic卡新增
  icSave(data) {
    return $http({
      url: $http.adornUrl("/web/ic/save"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },
  // ic卡重置卡套餐，金额
  icReset(data) {
    return $http({
      url: $http.adornUrl(`/web/ic/reset/${data}`),
      method: "post",
      contentType: "json",
      // data: $http.adornData(
      //   {
      //     ...data,
      //   },
      //   false,
      //   "json"
      // ),
    });
  },
  // ic卡充值金额/套餐
  icTopUp(data) {
    return $http({
      url: $http.adornUrl(`/web/ic/topUp`),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // ---- 首页 - 统计  ---

  // 首页-订单统计）
  homePageOrder(data) {
    return $http({
      url: $http.adornUrl("/web/tradeRecord/homePageOrder"),
      method: "get",
      contentType: "json",
      data: $http.adornData({
        ...data,
      }),
    });
  },
  // 首页-运营角色 （只有运营商端）
  homePageRole(data) {
    return $http({
      url: $http.adornUrl("/web/operator/homePageRole"),
      method: "get",
      contentType: "json",
      data: $http.adornData({
        ...data, //json模式
      }),
    });
  },
  // 首页-设备信息
  homeDeviceInfo(data) {
    return $http({
      url: $http.adornUrl("/web/device/homePageRole"),
      method: "get",
      contentType: "json",
      data: $http.adornData({
        ...data,
      }),
    });
  },
  // 首页-折线图
  orderLineChart(data) {
    return $http({
      url: $http.adornUrl("/web/tradeRecord/orderLineChart"),
      method: "get",
      // contentType: 'json',
      params: $http.adornParams({
        ...data, //表单模式
      }),
    });
  },
  // 首页-统计本月本周同比
  orderStatistics(data) {
    return $http({
      url: $http.adornUrl("/web/tradeRecord/orderStatistics"),
      method: "get",
      // contentType: 'json',
      params: $http.adornParams({
        ...data,
      }),
    });
  },
  // 管理员列表
  user_list(data) {
    return $http({
      url: $http.adornUrl("/system/user/list"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },
  // 添加管理员
  user_save(data) {
    return $http({
      url: $http.adornUrl("/system/user/save"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 编辑管理员
  user_update(data) {
    return $http({
      url: $http.adornUrl("/system/user/update"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },
  // 角色列表
  getRoleList(data) {
    return $http({
      url: $http.adornUrl("/system/role/list"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },

  // 删除管理员账号
  user_delete(data) {
    return $http({
      url: $http.adornUrl("/system/user/delete/" + data.userId),
      method: "get",
      // params: $http.adornParams({
      //   ...data
      // })
    });
  },
  // 代理商个人信息
  webAgent(id) {
    return $http({
      url: $http.adornUrl(`/web/agent/${id}`),
      method: "get",
      contentType: "json",
    });
  },
  //  新增代理商银行卡信息
  webAgentSaveBank(data) {
    return $http({
      url: $http.adornUrl("/web/agent/saveBank"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },
  // 修改代理商银行卡信息
  webAgentUpdateBank(data) {
    return $http({
      url: $http.adornUrl("/web/agent/updateBank"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 修改代理商个人信息
  webAgentUpdate(data) {
    return $http({
      url: $http.adornUrl("/web/agent/update"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },
  // 删除代理商个人信息
  webAgentDel(id) {
    return $http({
      url: $http.adornUrl(`/web/agent/del/${id}`),
      method: "get",
      contentType: "json",
    });
  },

  // 运营商获取所有代理商个人信息
  agentOperatora(id) {
    return $http({
      url: $http.adornUrl(`/web/agent/operatora/${id}`),
      method: "get",
      contentType: "json",
    });
  },

  // apk版本管理查询
  appVersion_list(data) {
    return $http({
      url: $http.adornUrl("/web/appVersion/list"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },

  // apk版本更新
  appVersion_updata(data) {
    return $http({
      url: $http.adornUrl("/web/appVersion/update"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 营销活动 start
  // 获取营销活动列表
  activityList(data) {
    return $http({
      url: $http.adornUrl(`/web/activity/list`),
      method: "get",
      contentType: "json",
      params: $http.adornParams({
        ...data,
      }),
    });
  },

  // 营销活动----活动详情
  activityGetInfo(id) {
    return $http({
      url: $http.adornUrl(`/web/activity/getInfo/${id}`),
      method: "get",
      contentType: "json",
    });
  },

  // 营销活动续期
  activityRenewal(data) {
    return $http({
      url: $http.adornUrl("/web/activity/renewal"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },
  // 禁用营销活动
  activityStartOrStop(data) {
    return $http({
      url: $http.adornUrl("/web/activity/startOrStop"),
      method: "post",
      contentType: "json",
      data: data,
    });
  },
  // 删除营销活动
  activityDelete(data) {
    return $http({
      url: $http.adornUrl("/web/activity/delete"),
      method: "post",
      contentType: "json",
      data: data,
    });
  },
  // 添加营销活动
  activitySave(data) {
    return $http({
      url: $http.adornUrl("/web/activity/save"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 代理商未参加的营销活动
  activityListNotActivityByAgent(data) {
    return $http({
      url: $http.adornUrl(`/web/activity/listNotActivityByAgent/${data}`),
      method: "get",
    });
  },
  // 分配给代理商的营销活动
  activityAddActivityForAgent(data) {
    return $http({
      url: $http.adornUrl("/web/activity/addActivityForAgent"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 寄存劵列表
  holdGetUserHoldRecord(data) {
    return $http({
      url: $http.adornUrl(`/web/hold/getUserHoldRecord`),
      method: "get",
      contentType: "json",
      params: $http.adornParams({
        ...data,
      }),
    });
  },
  // 编辑寄存劵
  holdCouponEdit(data) {
    return $http({
      url: $http.adornUrl("/web/hold/edit"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },
  // 获取我的寄存劵设置
  holdCouponSave() {
    return $http({
      url: $http.adornUrl("/web/hold/get"),
      method: "get",
      contentType: "json",
    });
  },
  //获取我的寄存劵分配列表
  holdAgentList(data) {
    return $http({
      url: $http.adornUrl(`/web/hold/agentList`),
      method: "get",
      contentType: "json",
    });
  },

  // 分配寄存设置
  holdCouponAllotAgent(data) {
    return $http({
      url: $http.adornUrl("/web/hold/allotAgent"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 寄存规则分配代理商设置--删除代理商
  holdHoldAgentDel(data) {
    return $http({
      url: $http.adornUrl(`/web/hold/holdAgent/del/${data}`),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        // {
        //   ...data,
        // },
        false,
        "json"
      ),
    });
  },

  // 营销活动 end

  // 设备报警信息页面
  // 设备报警 分页查询设备列表
  getDeviceWarningListss(pageNum, pageSize, data) {
    return $http({
      url: $http.adornUrl(
        `/web/deviceWarning/getDeviceWarningList/?pageNum=${pageNum}&pageSize=${pageSize}`
      ),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  //  通过ID查询设备告警详情信息
  getDeviceWarningss(id) {
    return $http({
      url: $http.adornUrl(`/web/deviceWarning/getDeviceWarning/${id}`),
      method: "get",
      // params: $http.adornParams({
      //   ...data,
      // }),
    });
  },
  // 修改设备告警信息
  editDeviceWarning(data) {
    return $http({
      url: $http.adornUrl("/web/deviceWarning/editDeviceWarning"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },
  // 新增设备告警信息
  addDeviceWarning(data) {
    return $http({
      url: $http.adornUrl("/web/deviceWarning/addDeviceWarning"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 通过ID删除设备警告信息
  delDeviceWarning(id, data) {
    return $http({
      url: $http.adornUrl(`/web/deviceWarning/delDeviceWarning/${id}`),
      method: "get",
      contentType: "json",
      params: $http.adornParams({
        ...data, //表单模式
      }),
    });
  },

  // 设备-新增
  device_save(data) {
    return $http({
      url: $http.adornUrl("/web/device/save"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 运营商---设备-编辑
  device_updata(data) {
    return $http({
      url: $http.adornUrl("/web/device/update"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 代理商---设备-编辑
  deviceAllocationDevice(data) {
    return $http({
      url: $http.adornUrl("/web/device/allocationDevice"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 设备列表
  device_list(data) {
    return $http({
      url: $http.adornUrl("/web/device/list"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },

  // 设备-删除
  device_del(data) {
    return $http({
      url: $http.adornUrl("/web/device/del/" + data.id),
      method: "post",
      // params: $http.adornParams({
      //   ...data
      // })
    });
  },

  // 设备-查看仓门
  device_channelList(data) {
    return $http({
      url: $http.adornUrl("/web/device/channelList"),
      method: "post",
      contentType: "json",
      noLoading: true,
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 仓门--启用/禁用
  device_updateDisable(data) {
    return $http({
      url: $http.adornUrl("/web/device/updateDisable"),
      method: "post",
      data: $http.adornData({
        ...data,
      }),
    });
  },

  // 设备-导入模板下载
  importTemplate(data) {
    return $http({
      url: $http.adornUrl("/web/device/importTemplate"),
      method: "get",
      // contentType:'json',
      // data: $http.adornData({
      //   ...data
      // },false,'json')
    });
  },

  // 充电柜充电记录  excel模板导出
  deviceLogExport() {
    return $http({
      url: $http.adornUrl("/web/deviceLog/export"),
      method: "get",
      // contentType: 'json',
      // params: $http.adornParams({
      //   ...data, //表单模式
      // }),
    });
  },

  // 充电柜充电记录  换电柜换电记录
  deviceLog_list(data) {
    return $http({
      url: $http.adornUrl("/web/deviceLog/list"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },

  // 用户换电记录  excel模板导出
  deviceLogExports(data) {
    return $http({
      url: $http.adornUrl(`/web/deviceLog/export`),
      method: "get",
      contentType: "json",
      params: $http.adornParams({
        ...data, //表单模式
      }),
    });
  },

  // 换电柜设置二维码
  deviceSetQrCode(data) {
    return $http({
      url: $http.adornUrl(`/web/device/setQrCode/${data}`),
      method: "get",
    });
  },
  // 换电柜开门通电关电操作
  deviceDoorPowerOns(data) {
    return $http({
      url: $http.adornUrl("/web/device/doorPowerOn"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },
  // 异常记录
  alarm_list(data) {
    return $http({
      url: $http.adornUrl("/web/alarm/list"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },

  // 异常记录-删除
  alarm_del(data) {
    return $http({
      url: $http.adornUrl("/web/alarm/del/" + data.id),
      method: "get",
      // params: $http.adornParams({
      //   ...data
      // })
    });
  },

  // 运营商-新增
  operator_save(data) {
    return $http({
      url: $http.adornUrl("/web/operator/save"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 运营商-编辑
  operator_updata(data) {
    return $http({
      url: $http.adornUrl("/web/operator/update"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 运营商-删除
  operator_del(data) {
    return $http({
      url: $http.adornUrl("/web/operator/del/" + data.id),
      method: "get",
      // params: $http.adornParams({
      //   ...data
      // })
    });
  },
  // 运营商-详情
  operator_detail(data) {
    return $http({
      url: $http.adornUrl("/web/operator/" + data.id),
      method: "get",
      // params: $http.adornParams({
      //   ...data
      // })
    });
  },

  // 运营商-列表
  operator_list(data) {
    return $http({
      url: $http.adornUrl("/web/operator/list"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },
  // 省市区街接口
  allAddressList(data) {
    return $http({
      url: "https://chargepole-yh.yunheznkj.com/common/v1.0/administrative",
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 站点-列表
  site_list(data) {
    return $http({
      url: $http.adornUrl("/web/site/list"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },

  // 站点-新增
  site_save(data) {
    return $http({
      url: $http.adornUrl("/web/site/save"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 站点-编辑
  site_updata(data) {
    return $http({
      url: $http.adornUrl("/web/site/update"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 站点-删除
  site_del(data) {
    return $http({
      url: $http.adornUrl("/web/site/del/" + data.id),
      method: "get",
      // params: $http.adornParams({
      //   ...data
      // })
    });
  },

  // 代理商-列表
  agent_list(data) {
    return $http({
      url: $http.adornUrl("/web/agent/list"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },

  // 代理商-新增
  agent_save(data) {
    return $http({
      url: $http.adornUrl("/web/agent/save"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },
  // 代理商-编辑
  agent_updata(data) {
    return $http({
      url: $http.adornUrl("/web/agent/update"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },
  // 代理商-删除
  agent_delete(data) {
    return $http({
      url: $http.adornUrl("/web/agent/del/" + data.id),
      method: "get",
    });
  },

  // 电池告警记录
  batteryAlarmList(data) {
    return $http({
      url: $http.adornUrl("/web/batteryAlarm/list"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },

  // 导出告警记录
  batteryAlarmExport(data) {
    return $http({
      url: $http.adornUrl("/web/batteryAlarm/export"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },

  // 电池类型-列表
  batteryTypeList(data) {
    return $http({
      url: $http.adornUrl("/web/batteryType/list"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },

  // 电池类型-新增
  batteryType_save(data) {
    return $http({
      url: $http.adornUrl("/web/batteryType/save"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 电池类型-编辑
  batteryType_updata(data) {
    return $http({
      url: $http.adornUrl("/web/batteryType/update"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 电池类型-删除
  batteryType_del(data) {
    return $http({
      url: $http.adornUrl("/web/batteryType/del/" + data.id),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },
  // 查询代理商电池类型列表
  batteryTypeListBatteryTypeByAgent(data) {
    return $http({
      url: $http.adornUrl(`/web/batteryType/listBatteryTypeByAgent/${data}`),
      method: "get",
    });
  },

  // 设置代理商电池类型
  batteryTypeAddAgentBatteryType(data) {
    return $http({
      url: $http.adornUrl("/web/batteryType/addAgentBatteryType"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 电池-列表
  battery_list(data) {
    return $http({
      url: $http.adornUrl("/web/battery/list"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },
  // 导出电池列表
  batteryExport(data) {
    return $http({
      url: $http.adornUrl("/web/battery/export"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },

  // 电池-新增
  battery_save(data) {
    return $http({
      url: $http.adornUrl("/web/battery/save"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 电池-编辑
  battery_updata(data) {
    return $http({
      url: $http.adornUrl("/web/battery/update"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 电池-详情
  battery_detail(data) {
    return $http({
      url: $http.adornUrl(`/web/battery/${data.id}`),
      method: "get",
      // params: $http.adornParams({
      //   ...data
      // })
    });
  },
  // 控制电池
  batterySetBattery(data) {
    return $http({
      url: $http.adornUrl("/web/battery/setBattery"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 电池押金-列表
  deposit_list(data) {
    return $http({
      url: $http.adornUrl("/web/deposit/list"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },

  // 电池押金-新增
  deposit_save(data) {
    return $http({
      url: $http.adornUrl("/web/deposit/save"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },
  // 电池押金-修改
  depositUpdate(data) {
    return $http({
      url: $http.adornUrl("/web/deposit/update"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 电池押金-详情
  // deposit_info(data = {}) {
  //   return $http({
  //     url: $http.adornUrl("/web/deposit/list"),
  //     method: "get",
  //     params: $http.adornParams({
  //       ...data,
  //     }),
  //   });
  // },

  // 电池押金-编辑
  deposit_updata(data) {
    return $http({
      url: $http.adornUrl("/web/deposit/update"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 电池押金-删除
  deposit_del(data) {
    return $http({
      url: $http.adornUrl("/web/deposit/del/" + data.id),
      method: "get",
    });
  },

  // 充值套餐-列表
  settingTopup_list(data) {
    return $http({
      url: $http.adornUrl("/web/settingTopup/list"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },

  // 充值套餐-新增
  settingTopup_save(data) {
    return $http({
      url: $http.adornUrl("/web/settingTopup/save"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 充值套餐-编辑
  settingTopup_updata(data) {
    return $http({
      url: $http.adornUrl("/web/settingTopup/update"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 充值套餐-删除
  settingTopup_del(data) {
    return $http({
      url: $http.adornUrl("/web/settingTopup/del/" + data.id),
      method: "get",
    });
  },
  // 充值套餐-赠送余额功能-开启/关闭
  settingTopup_startOrStop(data) {
    return $http({
      url: $http.adornUrl("/web/settingTopup/startOrStop"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },
  // 逾期管理---逾期费用
  userOverdueList(data) {
    return $http({
      url: $http.adornUrl("/web/userOverdue/list"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },
  // 逾期管理---逾期费用
  userOverdueCloseOverdueOrder(data) {
    return $http({
      url: $http.adornUrl(`/web/userOverdue/closeOverdueOrder?id=${data}`),
      method: "get",
    });
  },
  // 新用户赠送设置-详情
  settingGive_getInfo(data) {
    return $http({
      url: $http.adornUrl("/web/settingGive/getInfo"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },
  // 新用户赠送设置-新增或修改
  settingGive_saveOrUpdate(data) {
    return $http({
      url: $http.adornUrl("/web/settingGive/saveOrUpdate"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 充电业务基础设置-详情
  settingCharge_getInfo(data) {
    return $http({
      url: $http.adornUrl("/web/settingCharge/getInfo"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },

  // 充电业务基础设置-新增或修改
  settingCharge_saveOrUpdate(data) {
    return $http({
      url: $http.adornUrl("/web/settingCharge/saveOrUpdate"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 换电业务基础设置-详情
  settingExchange_getInfo(data) {
    return $http({
      url: $http.adornUrl("/web/settingExchange/getInfo"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },
  // 换电业务基础设置-新增或修改
  settingExchange_saveOrUpdate(data) {
    return $http({
      url: $http.adornUrl("/web/settingExchange/saveOrUpdate"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 运营商查看---换电业务基础设置列表
  settingExchangeList(data) {
    return $http({
      url: $http.adornUrl("/web/settingExchange/list"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },

  // 租车业务基础设置-详情
  settingRent_getInfo(data) {
    return $http({
      url: $http.adornUrl("/web/settingRent/getInfo"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },

  // 租车业务基础设置-新增或修改
  settingRent_saveOrUpdate(data) {
    return $http({
      url: $http.adornUrl("/web/settingRent/saveOrUpdate"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 协议文本 查询
  protocolGuide_getInfo(data) {
    return $http({
      url: $http.adornUrl("/web/protocolGuide/getInfo/" + data.type),
      method: "get",
      // params: $http.adornParams({
      //   ...data
      // })
    });
  },

  // 新增或编辑
  protocolGuide_saveOrUpdate(data) {
    return $http({
      url: $http.adornUrl("/web/protocolGuide/saveOrUpdate"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 平台信息-查询
  aboutUs_getInfo(data) {
    return $http({
      url: $http.adornUrl("/web/aboutUs/getInfo"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },

  // 平台信息_新增或编辑
  aboutUs_saveOrUpdate(data) {
    return $http({
      url: $http.adornUrl("/web/aboutUs/saveOrUpdate"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },
  // 日志列表查询
  operlog_list(data) {
    return $http({
      url: $http.adornUrl("/monitor/operlog/list"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },
  // 换电套餐-列表
  mealExchange_list(data) {
    return $http({
      url: $http.adornUrl("/web/mealExchange/list"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },

  // 换电套餐-新增
  mealExchange_save(data) {
    return $http({
      url: $http.adornUrl("/web/mealExchange/save"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },
  // 换电套餐-运营商分配套餐给代理商
  webMealExchange(data) {
    return $http({
      url: $http.adornUrl("/web/mealExchange/addOrUpdateAgentMeal"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },
  // 换电套餐-查询代理商底下所设置的套餐
  mealExchangeGetAgentMealList(data) {
    return $http({
      url: $http.adornUrl(`/web/mealExchange/getAgentMealList/${data}`),
      method: "get",
    });
  },

  // 换电套餐-编辑
  mealExchange_updata(data) {
    return $http({
      url: $http.adornUrl("/web/mealExchange/update"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 换电套餐-删除
  mealExchange_del(data) {
    return $http({
      url: $http.adornUrl("/web/mealExchange/del/" + data.id),
      method: "get",
      // params: $http.adornParams({
      //   ...data
      // })
    });
  },

  // 充电套餐-新增---功率
  MealBaseRate(data) {
    return $http({
      url: $http.adornUrl("/web/MealBaseRate/save"),
      contentType: "json",
      method: "post",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json" //josn模式
      ),
    });
  },

  // 充电套餐-列表
  mealCharge_list(data) {
    return $http({
      url: $http.adornUrl("/web/mealCharge/list"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },

  // 充电套餐列表页面--编辑按钮
  webMealCharge(id) {
    return $http({
      url: $http.adornUrl(`/web/mealCharge/${id}`),
      method: "get",
    });
  },
  // 充电套餐列表页面--编辑按钮--按电量收费删除按钮
  webMealBaseRateDel(id) {
    return $http({
      url: $http.adornUrl(`/web/MealBaseRate/del/${id}`),
      method: "get",
    });
  },
  // 充电套餐-新增
  mealCharge_save(data) {
    return $http({
      url: $http.adornUrl("/web/mealCharge/save"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },
  // 充电套餐-编辑
  mealCharge_update(data) {
    return $http({
      url: $http.adornUrl("/web/mealCharge/update"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },
  // 充电套餐-删除
  mealCharge_del(data) {
    return $http({
      url: $http.adornUrl("/web/mealCharge/del/" + data.id),
      method: "get",
      // params: $http.adornParams({
      //   ...data
      // })
    });
  },
  // 租车套餐-列表
  mealRent_list(data) {
    return $http({
      url: $http.adornUrl("/web/mealRent/list"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },
  // 租车套餐-新增
  mealRent_save(data) {
    return $http({
      url: $http.adornUrl("/web/mealRent/save"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 租车套餐-编辑
  mealRent_updata(data) {
    return $http({
      url: $http.adornUrl("/web/mealRent/update"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 租车套餐-删除
  mealRent_del(data) {
    return $http({
      url: $http.adornUrl("/web/mealRent/del/" + data.id),
      method: "get",
      // params: $http.adornParams({
      //   ...data
      // })
    });
  },

  // 小程序后台+++++++++++++++++++++++++ start

  // 商户的提现账号列表
  accountList() {
    return $http({
      url: $http.adornUrl("/web/account/list"),
      method: "get",
    });
  },
  // 删除---商户的提现账号
  accountDelById(data) {
    return $http({
      url: $http.adornUrl(`/web/account/delById/${data}`),
      method: "get",
    });
  },
  // 编辑----商户的提现账号
  accountEdit(data) {
    return $http({
      url: $http.adornUrl("/web/account/edit"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },
  // 添加----商户的提现账号
  accountSave(data) {
    return $http({
      url: $http.adornUrl("/web/account/save"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },
  // 获取商户可提现余额
  withdrawRecordGetWithdrawMoney() {
    return $http({
      url: $http.adornUrl("/web/withdrawRecord/getWithdrawMoney"),
      method: "get",
    });
  },
  // 商户提现记录列表
  withdrawRecordList(data) {
    return $http({
      url: $http.adornUrl("/web/withdrawRecord/list"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },
  // 导出商户提现记录
  withdrawRecordExport(data) {
    return $http({
      url: $http.adornUrl("/web/withdrawRecord/export"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },
  // 商户申请提现
  withdrawRecordWithdraw(data) {
    return $http({
      url: $http.adornUrl("/web/withdrawRecord/withdraw"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },
  // 运营商审核----商户申请提现的请求
  withdrawRecordCheck(data) {
    return $http({
      url: $http.adornUrl("/web/withdrawRecord/check"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 获取代理商----绑定的用户列表
  userGetBindAppUserList(data) {
    return $http({
      url: $http.adornUrl("/web/user/getBindAppUserList"),
      method: "get",
    });
  },

  // 代理商----绑定新增用户
  userBindAppUser(data) {
    return $http({
      url: $http.adornUrl(`/web/user/bindAppUser/${data}`),
      method: "get",
    });
  },

  // 代理商----解除绑定的用户
  userUnBindUserByUserId(data) {
    return $http({
      url: $http.adornUrl(`/web/user/unBindUserByUserId/${data}`),
      method: "get",
    });
  },

  // 小程序后台+++++++++++++++++++++++++ end

  // 用户列表
  user_list2(data) {
    return $http({
      url: $http.adornUrl("/web/user/list"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },
  // 用户详情
  userDetails(data) {
    return $http({
      url: $http.adornUrl("/web/user/" + data.id),
      method: "get",
      // params: $http.adornParams({
      //   ...data
      // })
    });
  },

  // IC卡-新增
  ic_save(data) {
    return $http({
      url: $http.adornUrl("/web/ic/save"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },
  // IC卡列表
  ic_list(data) {
    return $http({
      url: $http.adornUrl("/web/ic/list"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },

  // IC卡-删除
  ic_del(data) {
    return $http({
      url: $http.adornUrl("/web/ic/del/" + data.id),
      method: "get",
      // params: $http.adornParams({
      //   ...data
      // })
    });
  },

  // IC卡-导入模板excel下载
  importTemplate2(data) {
    return $http({
      url: $http.adornUrl("/web/ic/importTemplate"),
      method: "get",
    });
  },

  // IC卡-使用记录
  ic_useList(data) {
    return $http({
      url: $http.adornUrl("/web/ic/useList"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },
  // IC卡-充值
  updateUserWallet(data) {
    return $http({
      url: $http.adornUrl("/web/ic/updateUserWallet"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 运维列表
  maintenancer_list(data) {
    return $http({
      url: $http.adornUrl("/web/maintenancer/list"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },

  // 运维-添加
  maintenancer_save(data) {
    return $http({
      url: $http.adornUrl("/web/maintenancer/save"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 运维-编辑
  maintenancer_updata(data) {
    return $http({
      url: $http.adornUrl("/web/maintenancer/update"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 运维-删除
  maintenancer_del(data) {
    return $http({
      url: $http.adornUrl("/web/maintenancer/del/" + data.id),
      method: "get",
      // params: $http.adornParams({
      //   ...data
      // })
    });
  },

  // 运维_操作记录
  maintenancer_oprList(data) {
    return $http({
      url: $http.adornUrl("/web/maintenancer/oprList"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },
  //运维人员绑定设备
  maintenancerDeviceBindOpt(data) {
    return $http({
      url: $http.adornUrl("/web/maintenancer/deviceBindOpt"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },
  //获取运维人员未绑定的设备
  maintenancerListNotDeviceByOpt(data) {
    return $http({
      url: $http.adornUrl(`/web/maintenancer/listNotDeviceByOpt/${data}`),
      method: "get",
    });
  },
  //获取运维人员已绑定的设备
  maintenancerListDeviceByOps(data) {
    return $http({
      url: $http.adornUrl(`/web/maintenancer/listDeviceByOps/${data}`),
      method: "get",
    });
  },

  // A级--- 查询推广人员列表
  promotionList(data) {
    return $http({
      url: $http.adornUrl("/web/promotion/list"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },
  //A级---  修改推广员手机号
  promotionUpdate(data) {
    return $http({
      url: $http.adornUrl("/web/promotion/update"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },
  // A级--- 修改推广员状态
  promotionUpdate(data) {
    return $http({
      url: $http.adornUrl("/web/promotion/update"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 推广费用提现---线下转账
  userWithdrawRecordOffLineTransFel(data) {
    return $http({
      url: $http.adornUrl(`/web/userWithdrawRecord/offLineTransFel/${data}`),
      method: "post",
      contentType: "json",
    });
  },

  //  A级--- 删除推广员
  promotionDel(id) {
    return $http({
      url: $http.adornUrl(`/web/promotion/del/${id}`),
      method: "get",
      contentType: "json",
    });
  },
  //A级---   查询推广人员详细推广记录
  promotionPromotionRecord(data) {
    return $http({
      url: $http.adornUrl("/web/promotion/promotionRecord"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },
  //A级---  新增推广人员
  promotionSave(data) {
    return $http({
      url: $http.adornUrl("/web/promotion/save"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // B级  获取我的推广员设置
  promotionSettingGet(data) {
    return $http({
      url: $http.adornUrl("/web/promotionSetting/get"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },
  // B级  编辑我的推广员设置
  promotionSettingEdit(data) {
    return $http({
      url: $http.adornUrl("/web/promotionSetting/edit"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 推广佣金提现记录列表
  userWithdrawRecordList(data) {
    return $http({
      url: $http.adornUrl("/web/userWithdrawRecord/list"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },
  // 审核推广佣金的提现
  userWithdrawRecordCheck(data) {
    return $http({
      url: $http.adornUrl("/web/userWithdrawRecord/check"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },
  // 重新发起转账
  userWithdrawRecordReWithdraw(data) {
    return $http({
      url: $http.adornUrl("/web/userWithdrawRecord/reWithdraw"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 广告合集-列表
  advertBox_list(data) {
    return $http({
      url: $http.adornUrl("/web/advertBox/list"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },

  // 广告合集-新增
  advertBox_save(data) {
    return $http({
      url: $http.adornUrl("/web/advertBox/save"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 广告合集-编辑
  advertBox_updata(data) {
    return $http({
      url: $http.adornUrl("/web/advertBox/update"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 广告合集-删除
  advertBox_del(data) {
    return $http({
      url: $http.adornUrl("/web/advertBox/del/" + data.id),
      method: "get",
      // params: $http.adornParams({
      //   ...data
      // })
    });
  },

  // 广告-列表
  advert_list(data) {
    return $http({
      url: $http.adornUrl("/web/advert/list"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },
  // 广告-新增
  advert_save(data) {
    return $http({
      url: $http.adornUrl("/web/advert/save"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },
  // 广告-编辑
  advert_updata(data) {
    return $http({
      url: $http.adornUrl("/web/advert/update"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 广告-删除
  advert_del(data) {
    return $http({
      url: $http.adornUrl("/web/advert/del/" + data.id),
      method: "get",
      // params: $http.adornParams({
      //   ...data
      // })
    });
  },

  // 广告合集-新增广告
  advertList_add(data) {
    return $http({
      url: $http.adornUrl("/web/advertList/add"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 广告合集-已关联广告列表
  advertList_list(data) {
    return $http({
      url: $http.adornUrl("/web/advertList/list"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },

  // 广告合集-取消关联广告
  advertList_cancel(data) {
    return $http({
      url: $http.adornUrl("/web/advertList/cancel"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 广告合集-已关联设备列表
  advertDevice_deviceList(data) {
    return $http({
      url: $http.adornUrl("/web/advertDevice/deviceList"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },

  // 广告合集-新增关联设备
  advertDevice_save(data) {
    return $http({
      url: $http.adornUrl("/web/advertDevice/save"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 广告合集-取消关联设备
  advertDevice_cancel(data) {
    return $http({
      url: $http.adornUrl("/web/advertDevice/cancel"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 设备报障列表
  fault_list(data) {
    return $http({
      url: $http.adornUrl("/web/fault/list"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },

  // 意见反馈列表
  feedback_list(data) {
    return $http({
      url: $http.adornUrl("/web/feedback/list"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },

  // 财务流水
  tradeRecord_list(data) {
    return $http({
      url: $http.adornUrl("/web/tradeRecord/list"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },
  // 导出财务流水报表
  tradeRecordExport(data) {
    return $http({
      url: $http.adornUrl("/web/tradeRecord/export"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },

  // 充值订单列表
  topupRecord_list(data) {
    return $http({
      url: $http.adornUrl("/web/topupRecord/list"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },

  // 充电订单列表
  orderCharge_list(data) {
    return $http({
      url: $http.adornUrl("/web/orderCharge/list"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },
  // 充电订单  excel模板导出
  orderChargeExport() {
    return $http({
      url: $http.adornUrl("/web/orderCharge/export"),
      method: "get",
      // contentType: 'json',
      // params: $http.adornParams({
      //   ...data, //表单模式
      // }),
    });
  },

  // 换电订单列表
  orderExchange_list(data) {
    return $http({
      url: $http.adornUrl("/web/orderExchange/list"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },
  // 换电套餐订单
  mealOrderList(data) {
    return $http({
      url: $http.adornUrl("/web/mealOrder/list"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },
  // 换电押金订单
  depositOrderList(data) {
    return $http({
      url: $http.adornUrl("/web/depositOrder/list"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },

  // 导出换电订单
  orderExchangeExport(data) {
    return $http({
      url: $http.adornUrl("/web/orderExchange/export"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },
  // 导出套餐订单
  mealOrderExport(data) {
    return $http({
      url: $http.adornUrl("/web/mealOrder/export"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },
  // 导出押金订单
  depositOrderExport(data) {
    return $http({
      url: $http.adornUrl("/web/depositOrder/export"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },

  // 租车订单列表
  orderRent_list(data) {
    return $http({
      url: $http.adornUrl("/web/orderRent/list"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },

  // 换电订单-创建用户订单
  orderExchangeCreateOrder(data) {
    return $http({
      url: $http.adornUrl("/web/orderExchange/createOrder"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },

  // 换电订单-结束换电
  orderExchange_endOrder(data) {
    return $http({
      url: $http.adornUrl("/web/orderExchange/endOrder/" + data.id),
      method: "get",
      // params: $http.adornParams({
      //   ...data
      // })
    });
  },

  // 换电订单-更换电池
  orderExchange_replace(data) {
    return $http({
      url: $http.adornUrl("/web/orderExchange/replace"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },

  // 换电订单-归还电池
  orderExchange_giveBack(data) {
    return $http({
      url: $http.adornUrl("/web/orderExchange/giveBack/" + data.id),
      method: "get",
      // params: $http.adornParams({
      //   ...data
      // })
    });
  },
  // 电池统计
  batteryBatteryCountget() {
    return $http({
      url: $http.adornUrl("/web/battery/batteryCount"),
      method: "get",
    });
  },
  // 获取电池下载模板
  batteryImportTemplate() {
    return $http({
      url: $http.adornUrl("/web/battery/importTemplate"),
      method: "get",
    });
  },
  // 电池数据导入
  batteryImport(data) {
    return $http({
      url: $http.adornUrl("/web/battery/import"),
      method: "post",
      contentType: "formdata",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },
  // 电池租借最低电量设置
  operatorSettingEdit(data) {
    return $http({
      url: $http.adornUrl("/web/operatorSetting/edit"),
      method: "post",
      contentType: "formdata",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 获取电池租借最低电量设置
  operatorSettingGetss() {
    return $http({
      url: $http.adornUrl("/web/operatorSetting/get"),
      method: "get",
    });
  },

  // 禁仓记录列表
  cabinetDisableRecordList(data) {
    return $http({
      url: $http.adornUrl("/web/cabinetDisableRecord/list"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },

  // 禁仓记录列表---仓门禁用/启用
  deviceCabinetDisableChange(data) {
    return $http({
      url: $http.adornUrl("/web/device/cabinetDisableChange"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 获取用户换电次数列表
  centerUserExchangeNumList(data) {
    return $http({
      url: $http.adornUrl("/web/data/center/userExchangeNumList"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },

  // 获取用户换电列表
  centerUserExchangeList(data) {
    return $http({
      url: $http.adornUrl("/web/data/center/userExchangeList"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },

  // 用户状态统计
  userStatistics(data) {
    return $http({
      url: $http.adornUrl(`/web/user/statistics`),
      method: "get",
    });
  },

  // 获取用户当前套餐列表
  userMealListByUserId(data) {
    return $http({
      url: $http.adornUrl(`/web/userMeal/listByUserId/${data}`),
      method: "get",
    });
  },

  // 根据当前发用户套餐列表，给用户的套餐增加套餐天数
  userMealGive(id, data) {
    return $http({
      url: $http.adornUrl(`/web/userMeal/give/${id}/${data}`),
      method: "post",
    });
  },

  // // 电表记录列表
  // deviceElectricityRecordList(data) {
  //   return $http({
  //     url: $http.adornUrl("/web/deviceElectricityRecord/list"),
  //     method: "get",
  //     params: $http.adornParams({
  //       ...data,
  //     }),
  //   });
  // },
  // // 导出-----电表记录列表
  // deviceElectricityRecordExport(data) {
  //   return $http({
  //     url: $http.adornUrl("/web/deviceElectricityRecord/export"),
  //     method: "get",
  //     params: $http.adornParams({
  //       ...data,
  //     }),
  //   });
  // },

  // 导出设备电量列表
  deviceElectricExport(data) {
    return $http({
      url: $http.adornUrl("/web/deviceElectric/export"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },

  // 设备电量列表
  deviceElectricList(data) {
    return $http({
      url: $http.adornUrl("/web/deviceElectric/list"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },

  // 电表记录列表
  deviceElectricVoList(data) {
    return $http({
      url: $http.adornUrl("/web/deviceElectric/voList"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },

  // 电表抄表
  deviceElectricRecordElectric(data) {
    return $http({
      url: $http.adornUrl("/web/deviceElectric/recordElectric"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 抄表记录列表
  deviceElectricRecordList(data) {
    return $http({
      url: $http.adornUrl("/web/deviceElectric/recordList"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },
  // 抄表记录列表的导出
  deviceElectricRecordListExport(data) {
    return $http({
      url: $http.adornUrl("/web/deviceElectric/recordListExport"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },

  // 租车订单-结束
  orderRent_endOrder(data) {
    return $http({
      url: $http.adornUrl("/web/orderRent/endOrder/" + data.id),
      method: "get",
      // params: $http.adornParams({
      //   ...data
      // })
    });
  },

  // 租车订单-更换车辆
  orderRent_replace(data) {
    return $http({
      url: $http.adornUrl("/web/orderRent/replace"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },

  // 租车订单-归还
  orderRent_giveBack(data) {
    return $http({
      url: $http.adornUrl("/web/orderRent/giveBack/" + data.id),
      method: "get",
      // params: $http.adornParams({
      //   ...data
      // })
    });
  },

  // 充电订单-结束
  orderCharge_endOrder(data) {
    return $http({
      url: $http.adornUrl("/web/orderCharge/endOrder/" + data.id),
      method: "get",
      // params: $http.adornParams({
      //   ...data
      // })
    });
  },
  // 充电订单-详情订单
  orderCharge_detailOrder(data) {
    return $http({
      url: $http.adornUrl("/web/orderCharge/" + data.id),
      method: "get",
      // params: $http.adornParams({
      //   ...data
      // })
    });
  },

  // 充电订单-退款
  orderCharge_refundOrder(data) {
    return $http({
      url: $http.adornUrl("/web/orderCharge/refundOrder/" + data.id),
      method: "get",
      // params: $http.adornParams({
      //   ...data
      // })
    });
  },

  // 代理商提现列表
  withdrawRecord_list(data) {
    return $http({
      url: $http.adornUrl("/web/withdrawRecord/list"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },

  // 代理商提现-通过/驳回
  withdrawRecord_check(data) {
    return $http({
      url: $http.adornUrl("/web/withdrawRecord/check"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 代理商提现-申请
  withdrawRecord_save(data) {
    return $http({
      url: $http.adornUrl("/web/withdrawRecord/save"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },
  // 代理商--提现记录详细信息
  withdrawRecordAgentId(agentId) {
    return $http({
      url: $http.adornUrl(`/web/withdrawRecord/agentId/${agentId}`),
      method: "get",
      // params: $http.adornParams({
      //   ...data
      // })
    });
  },

  // 代理商提现-账户信息

  withdrawRecord_getAgentInfo(data) {
    return $http({
      url: $http.adornUrl("/web/withdrawRecord/getAgentInfo"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },

  // 用户押金提现列表
  depositReturn_list(data) {
    return $http({
      url: $http.adornUrl("/web/depositReturn/list"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },

  // 用户押金提现-通过/驳回
  depositReturn_check(data) {
    return $http({
      url: $http.adornUrl("/web/depositReturn/check"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 租车套餐-已关联设备列表
  deviceMealShip_list(data) {
    return $http({
      url: $http.adornUrl("/web/deviceMealShip/list"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },
  // 充电套餐-解除关联设备
  mealCharge_delDevice(data) {
    return $http({
      url: $http.adornUrl("/web/mealCharge/delDevice"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },
  // 租车套餐-解除关联设备
  deviceMealShip_del(data) {
    return $http({
      url: $http.adornUrl("/web/deviceMealShip/del"),
      method: "post",
      // contentType:'json',
      data: $http.adornData({
        ...data,
      }),
    });
  },

  // 租车套餐-关联设备
  deviceMealShip_save(data) {
    return $http({
      url: $http.adornUrl("/web/deviceMealShip/save"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 客服电话  strat
  // 新增客服电话
  operatorPhoneAdd(data) {
    return $http({
      url: $http.adornUrl("/web/operator/phone/add"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },
  // 获取客服电话列表
  operatorPhoneList(data) {
    return $http({
      url: $http.adornUrl("/web/operator/phone/list"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },
  // 修改客服电话
  operatorPhoneUpdate(data) {
    return $http({
      url: $http.adornUrl("/web/operator/phone/update"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },
  // 删除客服电话
  operatorPhoneDelete(data) {
    return $http({
      url: $http.adornUrl("/web/operator/phone/delete"),
      method: "post",
      data: $http.adornData({ ...data }),
    });
  },

  // 客服电话 end

  // 运营资料查询
  getOperateConfig(data) {
    return $http({
      url: $http.adornUrl("/web/operateConfig/getInfo"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },
  // 运营资料编辑
  editOperateConfig(data) {
    return $http({
      url: $http.adornUrl("/web/operateConfig/edit"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 运营设置查询
  operatorSettingGet() {
    return $http({
      url: $http.adornUrl("/web/operatorSetting/get"),
      method: "get",
    });
  },
  // 运营设置修改
  operatorSettingEdit(data) {
    return $http({
      url: $http.adornUrl("/web/operatorSetting/edit"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  showBtn(id, that) {
    if (that.$store.state.buttons[id]) {
      return true;
    } else {
      return false;
    }
  },

  setMonthCard(data) {
    return $http({
      url: $http.adornUrl("/web/user/addVip"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 查询未注册白名单列表
  getUnregisteredUser(data) {
    return $http({
      url: $http.adornUrl("/web/userWhite/getUnregisteredUser"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },

  // 查询已注册白名单列表
  registeredUser(data) {
    return $http({
      url: $http.adornUrl("/web/userWhite/registeredUser"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },

  // 未注册白名单 excel模板导出
  exportUnregisteredUser() {
    return $http({
      url: $http.adornUrl("/web/userWhite/exportUnregisteredUser"),
      contentType: "json",
      method: "post",
      data: {},
    });
  },
  // 已注册白名单 excel模板导出
  exportRegisteredUser(data) {
    return $http({
      url: $http.adornUrl("/web/userWhite/exportRegisteredUser"),
      contentType: "json",
      method: "post",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json" //josn模式
      ),
    });
  },

  // 白名单 查询所属代理商列表
  getWhiteList(data) {
    return $http({
      url: $http.adornUrl("/web/userWhite/getWhiteList"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },

  // 白名单 excel模板下载
  userWhite_download(data) {
    return $http({
      url: $http.adornUrl("/web/userWhite/importTemplate"),
      method: "get",
    });
  },
  // 白名单 excel模板导入
  userWhite_import(data) {
    return $http({
      url: $http.adornUrl("/web/userWhite/importData"),
      method: "post",
    });
  },
  // 白名单 添加
  userWhite_add(data) {
    return $http({
      url: $http.adornUrl("/web/userWhite/addWhiteByPhone"),
      method: "post",
      params: $http.adornParams({
        ...data, // 表单格式
      }),
    });
  },

  // 白名单 删除
  userWhite_del(data) {
    return $http({
      url: $http.adornUrl("/web/userWhite/delWhiteByPhone"),
      method: "post",
      params: $http.adornParams({
        ...data,
      }),
    });
  },

  cancelMonthCard(data) {
    return $http({
      url: $http.adornUrl("/web/user/deleteVip"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 获取设备列表信息
  getDeviceListInfo(data) {
    return $http({
      url: $http.adornUrl("/web/device/getDeviceListInfo"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 设备开仓
  deviceDoorPowerOn(data) {
    return $http({
      url: $http.adornUrl("/web/device/doorPowerOn"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 充换电柜详情信息
  cabinet_detailList(id, state) {
    return $http({
      url: $http.adornUrl(`/web/device/${id}/${state}`),
      method: "get",
    });
  },

  // 获取报警信息
  alarmGetList(data) {
    return $http({
      url: $http.adornUrl("/web/alarm/getList"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  alarmGetList2(data) {
    return $http({
      url: $http.adornUrl("/web/alarm/list"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },

  // 充电套餐-详情
  mealCharge_detail(mealId) {
    return $http({
      url: $http.adornUrl("/web/mealCharge/" + mealId),
      method: "get",
      // params: $http.adornParams({
      //   ...data
      // })
    });
  },

  getOperatorList(data) {
    return $http({
      // url: $http.adornUrl("/web/mealCharge/getOperator"),
      // method: "post",
      // contentType: "json",
      // data: $http.adornData(
      //   {
      //     ...data,
      //   },
      //   false,
      //   "json"
      // ),
    });
  },

  // 优惠券-------------------------
  // 查询优惠券列表
  couponList(data) {
    return $http({
      url: $http.adornUrl("/web/coupon/list"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },
  // 用户优惠券领取使用记录列表
  couponUseCouponList(data) {
    return $http({
      url: $http.adornUrl("/web/coupon/useCouponList"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },
  // 新增优惠券
  couponInsert(data) {
    return $http({
      url: $http.adornUrl("/web/coupon/insert"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },
  // 删除优惠券
  couponDelete(data) {
    return $http({
      url: $http.adornUrl("/web/coupon/delete"),
      method: "post",
      contentType: "json",
      data: data,
    });
  },
  // 修改优惠券
  couponUpdate(data) {
    return $http({
      url: $http.adornUrl("/web/coupon/update"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 开启或禁用优惠券活动
  couponStartOrStop(data) {
    return $http({
      url: $http.adornUrl("/web/coupon/startOrStop"),
      method: "post",
      contentType: "json",
      data: data,
    });
  },
  // 添加或修改代理商优惠券活动
  couponAddOrUpdateAgentCoupon(data) {
    return $http({
      url: $http.adornUrl("/web/coupon/addOrUpdateAgentCoupon"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },
  // 查询代理商底下所设置的优惠券
  couponGetAgentListAgentId(data) {
    return $http({
      url: $http.adornUrl(`/web/coupon/getAgentList/${data}`),
      method: "get",
    });
  },
  // 用户领取优惠券记录
  couponUseCouponList(data) {
    return $http({
      url: $http.adornUrl("/web/coupon/useCouponList"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },
  // 给用户派送优惠券
  couponPutCoupon(data) {
    return $http({
      url: $http.adornUrl("/web/coupon/putCoupon"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 用户实名认证记录
  userUserAutonymList(data) {
    return $http({
      url: $http.adornUrl("/web/user/userAutonymList"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },
  // 获取用户最后一次换电操作大于N天的订单信息   query
  orderExchangeGetLastUserOrderByDay(data) {
    return $http({
      url: $http.adornUrl("/web/orderExchange/getLastUserOrderByDay"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },
  // 获取钱包列表
  operatorWalletList(data) {
    return $http({
      url: $http.adornUrl("/web/operatorWallet/list"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },
  // 获取单个运营商个人的钱包
  operatorWalletGetWallet() {
    return $http({
      url: $http.adornUrl("/web/operatorWallet/getWallet"),
      method: "get",
    });
  },
  // 获取钱包流水明细
  operatorWalletRecordList(data) {
    return $http({
      url: $http.adornUrl("/web/operatorWallet/recordList"),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },
  // 平台充值金额
  operatorWalletPtRecharge(data) {
    return $http({
      url: $http.adornUrl("/web/operatorWallet/ptRecharge"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },
  // 微信二维码充值金额
  operatorWalletScanRecharge(data) {
    return $http({
      url: $http.adornUrl("/web/operatorWallet/scanRecharge"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },
  // 查询扫码支付是否完成
  operatorWalletGetRechargeResult(data) {
    return $http({
      url: $http.adornUrl(
        `/web/operatorWallet/getRechargeResult?orderNo=${data}`
      ),
      method: "get",
    });
  },

  // 车辆类型---列表
  carTypeList(data) {
    return $http({
      url: $http.adornUrl(`/web/car/type/list`),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },
  // 车辆类型---删除
  carTypeRemove(data) {
    return $http({
      url: $http.adornUrl(`/web/car/type/remove/${data}`),
      method: "post",
    });
  },
  // 车辆类型---新增
  carTypeSave(data) {
    return $http({
      url: $http.adornUrl("/web/car/type/save"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 车辆类型---修改
  carTypeEdit(data) {
    return $http({
      url: $http.adornUrl("/web/car/type/edit"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 车辆类型---分配代理商
  carTypeAllotAgent(data) {
    return $http({
      url: $http.adornUrl(`/web/car/type/allotAgent`),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },
  // 车辆类型---代理商列表
  carTypeAgentItem(data) {
    return $http({
      url: $http.adornUrl(`/web/car/type/agentItem?agentId=${data}`),
      method: "get",
    });
  },

  // 车辆---列表
  carList(data) {
    return $http({
      url: $http.adornUrl(`/web/car/list`),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },
  // 车辆---删除
  carRemove(data) {
    return $http({
      url: $http.adornUrl(`/web/car/remove/${data}`),
      method: "post",
    });
  },
  // 车辆---新增
  carSave(data) {
    return $http({
      url: $http.adornUrl("/web/car/save"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 车辆---修改
  carEdit(data) {
    return $http({
      url: $http.adornUrl("/web/car/edit"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 车辆押金--列表
  depositList(data) {
    return $http({
      url: $http.adornUrl(`/web/deposit/list`),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },

  // 车辆押金---新增
  depositSave(data) {
    return $http({
      url: $http.adornUrl("/web/deposit/save"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 车辆押金---修改
  carDepositUpdate(data) {
    return $http({
      url: $http.adornUrl("/web/deposit/update"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 车辆套餐--列表
  carMealList(data) {
    return $http({
      url: $http.adornUrl(`/web/car/meal/list`),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },
  // 车辆套餐---删除
  carMealRemove(data) {
    return $http({
      url: $http.adornUrl(`/web/car/meal/remove/${data}`),
      method: "post",
    });
  },

  // 车辆套餐---新增
  carMealSave(data) {
    return $http({
      url: $http.adornUrl("/web/car/meal/save"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 车辆套餐---修改
  carMealEdit(data) {
    return $http({
      url: $http.adornUrl("/web/car/meal/edit"),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },

  // 车辆套餐---分配代理商
  carMealAllotAgent(data) {
    return $http({
      url: $http.adornUrl(`/web/car/meal/allotAgent`),
      method: "post",
      contentType: "json",
      data: $http.adornData(
        {
          ...data,
        },
        false,
        "json"
      ),
    });
  },
  // 车辆套餐---代理商列表
  carMealAgentItem(data) {
    return $http({
      url: $http.adornUrl(`/web/car/meal/agentItem?agentId=${data}`),
      method: "get",
    });
  },

  // 车辆订单--列表
  carOrderList(data) {
    return $http({
      url: $http.adornUrl(`/web/car/order/list`),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },
  // 车辆订单---结束订单
  carOrderEndOrder(data) {
    return $http({
      url: $http.adornUrl(`/web/car/order/endOrder/${data}`),
      method: "post",
    });
  },
  // 车辆订单--导出列表
  carOrderExport(data) {
    return $http({
      url: $http.adornUrl(`/web/car/order/export`),
      method: "get",
      params: $http.adornParams({
        ...data,
      }),
    });
  },
};
